package com.luomo.wenyuan.modules.wenyuan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.luomo.wenyuan.common.utils.PageUtils;
import com.luomo.wenyuan.modules.wenyuan.dao.TSupplierDao;
import com.luomo.wenyuan.modules.wenyuan.entity.TSupplierEntity;
import com.luomo.wenyuan.modules.wenyuan.service.TSupplierService;
import com.luomo.wenyuan.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;



@Service("tSupplierService")
public class TSupplierServiceImpl extends ServiceImpl<TSupplierDao, TSupplierEntity> implements TSupplierService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TSupplierEntity> page = this.page(
                new Query<TSupplierEntity>().getPage(params),
                new QueryWrapper<TSupplierEntity>()
        );

        return new PageUtils(page);
    }

}